<template>
    <div class="container index">
        

    </div>
</template>
<script>
import Axios from 'axios';
import router from '../router';

export default {
    data() {
        return {
        }
    },
    beforeCreate() {

    },
  watch: {
    '$route' (to, from) {
      // 对路由变化作出响应...
      console.log(to)
    }
  },

    created() {
        console.log("created-index")
    },
    beforeMount() {
        console.log("beforeMount-index")
        Axios.get('https://cnodejs.org/api/v1/topic/5433d5e4e737cbe96dcef312', {
            params: {
              mdrender: false
            }
          })
          .then(function (response) {
            console.log(response);
          })
          .catch(function (error) {
            console.log(error);
          });

    },
    beforeUpdate() {
        console.log("beforeUpdate-index")
    },
    activated() {
        console.log('activated-index')
    },
    mounted() {
        console.log('mounted-index')
    },
    updated() {
        console.log("uodated-index")
    },
    beforeDestroy() {
        console.log("beforeDestroy-index")
    },
    destroyed() {
        console.log("destroyed-index")
    },
    deactivated() {
        console.log('deactivated0-index')
    },
    components: {
    }

}
</script>
